@extends('home.userinfo.user_layout')
@section('title',$title)
@section('content')
<div id="content" style="margin:0 auto;background:#F5F5F5;">
<div id="sub">
<div id="menu" style="width: 100px;margin-left:180px;">
	<dl class="fore1">		
	<dt id="_MYJD_setting">设置</dt>		
	<dd class="fore1_1 curr" id="_MYJD_info">			
	<a clstag="homepage|keycount|home2013|Homeyser" href="/user" target="_self">个人信息</a>		
	</dd>		
	<dd class="fore1_2" id="_MYJD_safe">			
	<a clstag="homepage|keycount|home2013|Homesafe" href="/changepass" target="_self">账号安全</a>		
	</dd>		
	<dd class="fore1_3" id="_MYJD_accbinde">			
	<a clstag="homepage|keycount|home2013|Homezhbd" href="#" target="_self">账号绑定</a>		
	</dd>		
	<dd class="fore1_4" id="_MYJD_grade">			
	<a clstag="homepage|keycount|home2013|Homegrade" href="/dingdan" target="_self">我的订单</a>		
	</dd>		
	<dd class="fore1_5" id="_MYJD_comments">			
	<a clstag="homepage|keycount|home2013|homeadd" href="/address" target="_self">收货地址</a>		
	</dd>		
	</dl>
</div>
</div>
	<div class="mod-main" style="width:1050px;margin-left:180px;">
					<div class="mt">
						<ul class="extra-l">
							<li class="fore-1"><a href="/user">基本信息</a></li>
                            <li class="fore-2"><a class="curr" href="/upic">头像照片</a></li>		
						</ul>
					</div>
					<div class="mc update-face-cont" >
					<form action="/upic/upload" method="post" enctype="multipart/form-data">
					{{csrf_field()}}
					<!-- 隐藏id -->
                    <input type="hidden" name="id" value="{{$data -> id}}">
                    <!-- 隐藏pic -->
                    <input type="hidden" name="oldpic" value="{{$data -> pic}}">
							<div class="update-lcol" style="margin-left:30px;margin-top:25px;">
							<div class="mb10">
								<label for="exampleInputFile">头像上传</label>
                                <input type="file" name="pic" id="exampleInputFile">
							</div>
							<div class="img-b-cont img-cont ">
								<div class="img-b" style="border:1px solid #ccc;width:470px;height:236px;background:#f9f9f9;">
									<img id="bigImage" name="bigImage" alt="" width="150" height="150" style="margin:30px 160px;" src="{{$data -> pic}}">
								</div>
							</div>
							<div class="smc face-list">
								
								<div class="btns mt20">
					
								   <input type="submit" value="更新" id="btn">
								
								</div>
							</div>
						</div>
					</form>
						<div class="clr"></div>
					</div>
				</div>
</div>
<script type="text/javascript">
	// alert($);
	$('#btn').on('click',function()
	{
		alert('头像更新成功');
	});
</script>
@endsection